package com.example.bookservice.dto;

import com.example.bookservice.entity.Book;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86187
 * Date: 2023-09-22
 * Time: 10:25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "kafka 新增/修改书籍时, 推送消息的实体", description = "")
public class KafkaBookDTO {
    @ApiModelProperty("书籍作者")
    private String author;

    @ApiModelProperty("书籍实体类")
    private Book book;
}
